package fec.xkdx.com.latter.util.dimen;

import android.content.res.Resources;
import android.util.DisplayMetrics;

import fec.xkdx.com.latter.app.Latte;

/**
 * Created by 神前晓 on 2018/3/13.
 * fec.xkdx.com.latter.util
 * 测量工具类
 */

public class DimenUtil {
    public static int getScreenWidth() {
        final Resources resources = Latte.getApplication().getResources();
        final DisplayMetrics dm = resources.getDisplayMetrics();
        return dm.widthPixels;
    }

    public static int getScreenHeight() {
        final Resources resources = Latte.getApplication().getResources();
        final DisplayMetrics dm = resources.getDisplayMetrics();
        return dm.heightPixels;
    }
}
